<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>消费记录</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->


<script type="text/javascript" src="H-ui.admin/lib/html5shiv.js"></script>
<script type="text/javascript" src="H-ui.admin/lib/respond.min.js"></script>
<link rel="stylesheet" type="text/css" href="H-ui.admin/static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="H-ui.admin/static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="H-ui.admin/lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="H-ui.admin/static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="H-ui.admin/static/h-ui.admin/css/style.css" />
<script type="text/javascript" src="H-ui.admin/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>
	DD_belatedPNG.fix('*');
</script>
</head>

<body>
	<nav class="breadcrumb"> 
	<i class="Hui-iconfont">&#xe67f;</i> 首页
	<span class="c-gray en">&gt;</span> 消费管理 <span class="c-gray en">&gt;</span>
	查看消费 <a class="btn btn-success radius r"
		style="line-height:1.6em;margin-top:3px"
		href="javascript:location.replace(location.href);" title="刷新"><i
		class="Hui-iconfont">&#xe68f;</i> </a>
	</nav>
	<div class="page-container">
	<s:form action="projectrecordActionfindAllProjectrecord?pageNo=1">
		<div class="text-c"> 日期：
		<input name="sywProjectrecord.corddate" type="text" onfocus="WdatePicker({ maxDate:'#F{$dp.$D(\'datemax\')||\'%y-%M-%d\'}' })" id="datemin" class="input-text Wdate" style="width:120px;">
		<input  type="hidden" onfocus="WdatePicker({ minDate:'#F{$dp.$D(\'datemin\')}',maxDate:'%y-%M-%d' })" id="datemax" class="input-text Wdate" style="width:120px;">
		<input type="text" class="input-text" style="width:250px" placeholder="手牌" value="" id="haid" name="hid">
		<input type="submit" class="btn btn-success" id="" name="" value="搜索"/>
	</div>
	</s:form>
	</div>
	<s:if test='#session.user1.sywRole.name=="休闲管理员" ||#session.user1.sywRole.name=="保健管理员" ||#session.user1.sywRole.name=="前台管理员"'>
	<div class="cl pd-5 bg-1 bk-gray mt-20">
			<span class="l"><a href="projectrecordActionfindprojectres" class="btn btn-primary radius"><i
					class="Hui-iconfont">&#xe600;</i> 添加消费</a> </span>
	</div>
	</s:if>
	<div class="mt-20">
			<table
				class="table table-border table-bordered table-hover table-bg table-sort">
				<thead>
					<tr class="text-c">
						<th width="80">手牌</th>
						<th width="100">项目名</th>
						<th width="40">项目价格</th>
						<th width="90">项目类别</th>
						<th width="90">技师号</th>
						<th width="90">房间号</th>
						<th width="90">消费时间</th>
						<th width="100">操作</th>
					</tr>
				</thead>

				<tbody>
					<s:iterator value="ps.items" id="pcs" status="s">
						<tr class="text-c">
							<td><s:property value="#pcs.sywCustomer.sywHands.id" /></td>
							<td><s:property value="#pcs.sywProject.name" /></td>
							<td><s:property value="#pcs.sywProject.price" /></td>
							<td><s:property value="#pcs.sywProject.sywProjectsort.name" /></td>
							<td><s:property value="#pcs.tid" /></td>
							<td><s:property value="#pcs.houseid" /></td>
							<td><s:property value="#pcs.corddate" /></td>
							<td class="td-manage"><%--<a title="添加" href="projectrecordActionfindprojectres"
								class="ml-5" style="text-decoration:none"><i
									class="Hui-iconfont">&#xe6df;</i> </a>  <a
								style="text-decoration:none" class="ml-5"
								href="projectActionfindProjectById?id=<s:property value="id"/>"
								title="修改"><i class="Hui-iconfont">&#xe63f;</i> </a> --%> 
								<s:if test='#session.user1.sywRole.name=="休闲管理员" ||#session.user1.sywRole.name=="保健管理员" ||#session.user1.sywRole.name=="前台管理员"'>
								<s:if test="#pcs.sywProject.name!='门票'">
								<a title="删除" onclick="confirm('确定删除吗?')"
								href="projectrecordActiondeleteProjectrecord?sywProjectrecord.id=<s:property value="id"/>"
								class="ml-5" style="text-decoration:none"> <i
									class="Hui-iconfont">&#xe6e2;</i> </a></s:if></s:if></td>
						</tr>
					</s:iterator>
				</tbody>
			</table>
			<br>
			<table>	
				<tr>
	        <td colspan="7" align="center">
		      	<c:import url="../rollPage.jsp" charEncoding="UTF-8">
				<c:param name="formName" value="document.forms[0]"/>
				<c:param name="totalRecordCount" value="${ps.totalCount}"/>
				<c:param name="totalPageCount" value="${ps.totalPageCount}"/>
				<c:param name="currentPageNo" value="${ps.currPageNo}"/>
  			</c:import> 
  		  	</td>
  		  </tr>
			</table>
	</div>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="H-ui.admin/lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="H-ui.admin/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="H-ui.admin/static/h-ui/js/H-ui.min.js"></script> 
<script type="text/javascript" src="H-ui.admin/static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="${pageContext.request.contextPath}/H-ui.admin/lib/My97DatePicker/4.8/WdatePicker.js"></script> 
<script type="text/javascript" src="H-ui.admin/lib/datatables/1.10.0/jquery.dataTables.min.js"></script> 
<script type="text/javascript" src="H-ui.admin/lib/laypage/1.2/laypage.js"></script>
	<script type="text/javascript">
		function datadel() {
			var checkbox=$("#checkbox").val();
			if (checkbox == 0) {
				alert("没有选择");
			} else {
				if (confirm("您确定要删除这些记录吗?")) {
					document.projectForm.submit();
				}
			}
		}
		 function CheckAll(projectForm){
                  for (var i=0;i<projectForm.elements.length;i++){
                     var e = projectForm.elements[i];
                          if (e.Name != "checkALL"&&e.disabled!=true)
                             e.checked = projectForm.checkALL.checked;
                      }
          }
          
	</script>
</body>
</html>
